package com.zengqingfa.datastructure.demo;

/**
 *
 * @fileName: StringTest
 * @author: zengqf3
 * @date: 2021-4-25 17:25
 * @description:
 */
public class StringTest {
    public static void main(String[] args) {
        String s ="java,java,hello world";
        String s1 = s.replaceAll("java", "zengqingfa");
        System.out.println(s1);
        System.out.println(s);
    }
}
